package com.gitee.shardingsphere.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.shardingsphere.common.entity.enums.EnableStatusEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author YooLin1c
 * @since 2018-05-11
 */
@Data
@TableName("t_user")
public class User implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String userName;
    private String phone;
    private EnableStatusEnum status;
    private Date createTime;
    private Date updateTime;


    public static final String ID = "id";

    public static final String USER_NAME = "user_name";

    public static final String PHONE = "phone";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
